$(function(){

	$('#avpush a.main').on('click', function(e) {
		e.stopPropagation();
		return true;
	});

	$('#avblank, #avpush a.close, a.avbclose').on('click', function() {

		$('body').addClass('smbar');
		$('#avblank, #avpush').hide();
		$('#avblank').remove();
		$('.avbar').show();

		document.cookie="AVBARHIDE=1; expires=Wed, 01 Jan 2020 00:00:00 UTC";


		$.get("/close-avbar.php");
		return false;
	});


});